package com.dl.mall.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author DL
 * @create 2022-03-23 15:23
 */
@Accessors(chain = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "ProductSpecs",description = "商品规格实体类")
public class ProductSpecs implements Serializable {
    private Integer id;// 规格表id
    @Column(name = "product_id")
    private String productId;// 产品id
    @Column(name = "specs_id")
    private String specsId;// 规格id
    @Column(name = "product_specs")
    private String productSpecs;// 规格信息
    @Column(name = "specs_img")
    private String specsImg;// 规格图片
    @Column(name = "price")
    private BigDecimal price;// 价格
    @Column(name = "specs_stock")
    private Integer specsStock;// 库存
    @Column(name = "state")
    private Integer state;// 状态
    private Timestamp createTime;// 创建时间
    private Timestamp updateTime;// 更新时间

}
